Skip to content

GH-108362: Incremental GC implementation#116206

Merged
markshannon merged 16 commits intopython:mainfrom
faster-cpython:incremental-gc-3
Mar 20, 2024
Merged

GH-108362: Incremental GC implementation#116206
markshannon merged 16 commits intopython:mainfrom
faster-cpython:incremental-gc-3

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Mar 1, 2024

Implements incremental cyclic GC.
Instead of traversing one generation on each collection, we traverse the young generation and the oldest part of the old generation. By traversing the old generation a chunk at a time, we keep pause times down a lot.

See faster-cpython/ideas#613 for the idea and algorithm.


📚 Documentation preview 📚: https://cpython-previews--116206.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants